package br.ufrn.sigtcc.filter;


//@WebFilter(servletNames = { "Faces Servlet" })
public class LoginFilter /*implements Filter*/ {
/*
 @Override
 public void doFilter(ServletRequest request, ServletResponse response,
 FilterChain chain) throws IOException, ServletException {

 HttpServletRequest req = (HttpServletRequest) request;
 HttpSession session = req.getSession();

 if (session.getAttribute("autenticado") != null
|| req.getRequestURI().endsWith("login.xhtml")) {
 chain.doFilter(request, response);
 } else {
 HttpServletResponse res = (HttpServletResponse) response;
 res.sendRedirect("login.xhtml");
 }

 }

 @Override
 public void init(FilterConfig filterConfig) throws ServletException {
}

 @Override
 public void destroy() {
 }*/
 }